package link.hwx.service.oa.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import link.hwx.entity.oa.OaBillInfoVo;
import link.hwx.mapper.oa.OaPayReqInfoMapper;
import link.hwx.service.oa.OaPayReqInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@DS("OAData")
@Service
public class OaPayReqInfoServiceImpl implements OaPayReqInfoService {

    @Autowired
    private OaPayReqInfoMapper oaPayReqInfoMapper;


    @Override
    public OaBillInfoVo findPayReqInfoByRequestId(String payReqMainTableName, String requestid) {
        return oaPayReqInfoMapper.findPayReqInfoByRequestId(payReqMainTableName, requestid);
    }

    @Override
    public List<OaBillInfoVo> findPayReqInfoByDocNo(String payReqMainTableName, String docNo) {
        return oaPayReqInfoMapper.findPayReqInfoByDocNo(payReqMainTableName,docNo);
    }

    @Override
    public int updatePayReqU9DocNoByRequestId(String payReqMainTableName, String requestid, String srmdocno) {
        return oaPayReqInfoMapper.updatePayReqU9DocNoByRequestId(payReqMainTableName, requestid, srmdocno);
    }
}
